:root {
  --pink: #fea0c2;
  --pink-light: #ffcfe4;
  --red: #f91a55;
  --orange: rgb(222, 117, 31);
  --orange-light: #f9e6d8;
  --yellow: #fcd947;
  --yellow-light: #f8e69c;
  --yellow-dark: #e8ab72;
  --green: #009355;
  --green-light: #23bc7c;
  --green-dark: #72e8a1;
  --purple-light: #ffe2ff;
  --sticky-note-pink: #ffddea;
  --sticky-note-yellow: #ffd;
  --sticky-note-green: #c7fff0;
  --sticky-note-blue: #c3faff;
  --sticky-note-purple: #ffe2ff;
  --answer-purple: #f8f1f8;
  --gray: rgb(220, 220, 220);
  --border-width: 2px;
  --sidebar-width: 22em;
}

body {
  font-family: "Inter", Arial, sans-serif;
}

p {
  padding-bottom: 15px;
}

a {
  color: var(--orange);
}

.tilt-left {
  transform: rotate(-2.5deg);
}

.tilt-right {
  transform: rotate(2.5deg);
}

.bg-gray {
  background: var(--gray);
}

.bg-orange-light {
  background: var(--orange-light);
}

/* squiggle */

.squiggle-top,
.squiggle-bottom {
  position: relative;
  /* background-color: inherit; */
}

.squiggle-top {
  margin-top: 32px;
}

.squiggle-bottom {
  margin-bottom: 32px;
}

.squiggle-top::before,
.squiggle-bottom::after {
  content: " ";
  position: absolute;
  width: 100%;
  left: 0;
  height: 32px;
}

.squiggle-top::before {
  bottom: calc(100% - 1px);
  background: url("/images/squiggle-top-invert.svg") repeat top center;
  background-color: inherit;
  -webkit-mask: url("/images/squiggle-top-mask.svg") repeat top center;
  mask: url("/images/squiggle-top-mask.svg") repeat top center;
}

.squiggle-bottom::after {
  top: calc(100% - 1px);
  background: url("/images/squiggle-bottom-invert.svg") repeat bottom center;
  background-color: inherit;
  -webkit-mask: url("/images/squiggle-bottom-mask.svg") repeat bottom center;
  mask: url("/images/squiggle-bottom-mask.svg") repeat bottom center;
}

hr.squiggle {
  border: none;
  height: 32px;
  background-image: url("/images/squiggle-line.svg");
}

.person {
  width: 80px;
  min-width: 55px;
}

/* note */

.note {
  background: var(--orange-light);
  color: black;
  padding: 2em;
  border: var(--border-width) solid black;
  border-radius: 8px;
  position: relative;
}

.note-buttons {
  position: absolute;
  bottom: -32px;
  right: 2em;
  width: 100%;
  text-align: right;
}

.note::before {
  content: " ";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 20px 10px 0;
  border-color: transparent black transparent transparent;
  top: 2em;
  left: -22px;
  position: absolute;
}

.note::after {
  content: " ";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 20px 10px 0;
  border-color: transparent var(--orange-light) transparent transparent;
  top: 2em;
  left: -20px;
  position: absolute;
}

/* button, pricing, faq */

.button,
.formkit-submit {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid black;
  border-radius: 0.5rem;
  color: black;
  background: var(--yellow);
  text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.75);
  box-shadow: 2px 2px var(--yellow-dark), 6px 6px black;
  transition: all 100ms ease;
  line-height: 1.2em;
  /* font-size: 0.9em; */
}

.button:hover {
  background: var(--yellow-light);
}

.button:active,
.formkit-submit:active {
  background: var(--yellow);
  transform: translateX(4px) translateY(4px);
  box-shadow: 0px 0px var(--yellow-dark), 0px 0px black;
}

.button:disabled,
.button.disabled {
  pointer-events: none;
  opacity: 0.5;
}

.button.button-green {
  color: white;
  background: var(--green);
  box-shadow: 2px 2px var(--green-dark), 6px 6px black;
  text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.75);
}

.button.button-green:hover {
  background: var(--green-light);
}

.button.button-green:active {
  background: var(--green);
  box-shadow: 0px 0px var(--green-dark), 0px 0px black;
}

nav .button {
  margin-bottom: 0;
}

details>summary.corporate::-webkit-details-marker {
  display: none;
}

details summary.corporate {
  list-style: none;
}

.sidebar-width {
  width: var(--sidebar-width);
}

.upcoming-zine {
  width: var(--sidebar-width);
  max-width: 100%;
}

.toc-preview {
  border: 2px solid black;
  max-width: 400px;
}

.faq {
  background: white;
  box-shadow: 5px 5px 0 0 black;
  width: var(--sidebar-width);
  max-width: 100%;
}

.pricing {
  background: white;
  border-radius: 0.5rem;
  border: 1px solid black;
  width: var(--sidebar-width);
  max-width: 100%;
  box-shadow: 5px 5px 0 0 black;
}

.pricing summary {
  margin: 0;
}

#corporate-rates {
  border-radius: 0.5rem;
  background-color: black;
  margin-left: 0.4rem;
  margin-top: -0.5em;
  padding: 1.5rem 0.5rem 0.1rem 0.5rem;
}

.pricing-inside {
  width: 100%;
  padding: 1em;
}

.pricing-inside .button {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.button .type {
  font-weight: 600;
}

.button .price {
  font-size: 1.5em;
  font-weight: 600;
  line-height: 1.5em;
}

.button .icon {
  font-size: 1.75em;
  line-height: 1.5em;
  width: 50px;
  text-align: center;
}

/* formkit overrides */

.formkit-submit,
.form-inline button {
  display: inline-block;
  font-weight: bold !important;
  color: black !important;
  border: 1px solid black !important;
  background: var(--pink) !important;
  box-shadow: 2px 2px var(--pink-light), 6px 6px black;
  border-radius: 0.5rem !important;
  font-size: 1.1em !important;
}

.formkit-submit#subscribe {
  margin-bottom: 0 !important;
  padding: 0.5em 1em !important;
}

input.formkit-input,
.form-inline input {
  border-radius: 0.5rem !important;
  border: 1px solid black !important;
  font-size: 1.1em !important;
}

[data-style="clean"] {
  padding: 0px !important;
}

/* form css */
.form-inline {
  display: flex;
  flex-flow: row wrap;
  margin-bottom: 1em;
  font-size: 1em;
}

.form-inline input {
  display: inline;
  max-width: 100%;
  width: 30em;
  margin: 0 10px 0 0;
  padding: 10px;
  background-color: #fff;
  border: 1px solid #ddd;
}

.form-inline button {
  padding: 0.5em;
}

@media (max-width: 800px) {
  .form-inline input {
    margin: 10px 0;
    max-width: 100% !important;
  }

  .form-inline {
    flex-direction: column;
    align-items: stretch;
  }
}

/* tabs around pricing */

.tabs {
  display: grid;
  width: var(--sidebar-width);
  max-width: 100%;
  grid-template-columns: 0.8fr 1.2fr 1fr;
  grid-template-rows: 2;
  grid-template-areas:
    "t-1 t-2 t-3"
    "ver ver ver";
}

/* & the labels go to... */
.tabs [for*="-1"] {
  grid-area: t-1;
}

.tabs [for*="-2"] {
  grid-area: t-2;
}

.tabs [for*="-3"] {
  grid-area: t-3;
}

/* show each content */
.tabs :checked+label+div {
  grid-area: ver;
  z-index: 1;
}

.tabs [class*="tab-"] {
  opacity: 0;
  max-width: 0;
  /* max-height: 0; */
  display: flex;
  flex-direction: columns;
  flex-wrap: nowrap;
  align-items: center;
  display: none;
}

.tabs :checked+label+[class*="tab-"] {
  background: #fff;
  opacity: 1;
  /* max-height: 200px; */
  max-width: 100%;
  display: block;
}

.tabs>label {
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: bold;
  line-height: 2rem;
  text-align: center;
  z-index: 1;
  border: 1px solid black;
  border-radius: 3px 3px 0px 0px;
  border-bottom: 0px;
  margin: 0px 0.55em;
  height: 3em;
}

.tabs label:hover {
  background: rgba(0, 0, 0, 0.2);
}

.tabs input:not(checked)+label {
  background: #e0e0e0;
}

.tabs input:checked+label {
  background: white;
}

.tabs .hide {
  display: none;
}

/* faq */

.faq-1 {
  visibility: hidden;
  height: 0px;
}

#toggle-1:checked~.faq-1 {
  visibility: visible;
  height: 100%;
}

ul {
  list-style-type: disc;
  padding-left: 1em;
  padding-bottom: 1em;
}

ol {
  list-style-type: decimal;
  padding-left: 1em;
  padding-bottom: 1em;
}

.zine {
  display: inline-block;
  position: relative;
  border: var(--border-width) solid black;
  z-index: 1;
  transition: all 400ms cubic-bezier(0.215, 0.61, 0.355, 1);
  background: white;
  margin-top: 2em;
}

.zine::before,
.zine::after {
  content: " ";
  position: absolute;
  border: var(--border-width) solid black;
  top: calc(var(--border-width) + 1px);
  bottom: calc(var(--border-width) + 1px);
  left: calc(var(--border-width) + 1px);
  right: calc(var(--border-width) + 1px);
  z-index: -1;
  transition: all 450ms cubic-bezier(0.215, 0.61, 0.355, 1);
  background: white;
}

.zine img {
  max-height: 400px;
}

.zine .new {
  position: absolute;
  top: -25px;
  right: -28px;
  background: var(--yellow);
  text-align: center;
  width: 70px;
  height: 70px;
  line-height: 70px;
  border: var(--border-width) solid black;
  border-radius: 50%;
  transform: rotate(20deg);
  font-weight: bold;
}

.zine-lg {
  max-width: 80%;
}

/* horizontal */
.zine.horizontal {
  transform: SkewX(-5deg);
  border-right: 0;
}

.zine.zine.horizontal img {
  border-right: var(--border-width) solid black;
}

.zine.horizontal::before,
.zine.horizontal::after {
  transform: SkewX(10deg) translateX(-5px);
  transform-origin: top left;
  top: calc(-1 * var(--border-width));
}

.zine.horizontal::before {
  transform: SkewX(10deg) translateX(5px);
}

.zine.horizontal:hover {
  transform: SkewX(-10deg) SkewY(2deg) translateY(-20px);
  z-index: 99;
}

.zine.horizontal:hover::after {
  transform: SkewX(20deg) translateX(-5px);
}

.zine.horizontal:hover::before {
  transform: SkewX(20deg) translateX(5px);
}

/* vertical */
.zine.vertical {
  transform: SkewY(5deg);
  transform-origin: bottom left;
  border-top: 0;
}

.zine.zine.vertical img {
  border-top: var(--border-width) solid black;
}

.zine.vertical::before,
.zine.vertical::after {
  transform: SkewY(-10deg) translateY(-5px);
  transform-origin: bottom left;
  left: calc(-1 * var(--border-width));
}

.zine.vertical::after {
  transform: SkewY(-10deg) translateY(5px);
}

.zine.vertical:hover {
  transform: SkewY(5deg) translateY(-15px);
  z-index: 99;
}

.zine.vertical:hover::before {
  transform: SkewY(-15deg) translateY(-5px);
}

.zine.vertical:hover::after {
  transform: SkewY(-15deg) translateY(5px);
}

/* experiment */

#experiments {
  background: rebeccapurple;
  color: white;
}

#experiment-list svg {
  height: 4em;
  stroke: black;
  display: inline-block;
}

#experiment-list ul {
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
  text-align: center;
  margin: auto;
  justify-content: center;
}

#experiment-list p {
  color: black;
  max-width: 20em;
  padding-top: 0.5em;
}

#experiment-list li {
  margin: 1em;
  padding: 0.5em;
  background-color: white;
  width: 22em;
  border-radius: 2em;
  border: 3px solid black;
}

#experiment-list li:hover {
  outline: 2px solid white;
}

#experiment-list a h3 {
  font-weight: bold;
  text-align: center;
  font-size: 1.3rem;
  margin: 0.3rem 0;
}

#experiment-list ul:nth-of-type(odd) li:nth-of-type(5n + 0) {
  background: var(--sticky-note-pink);
}

#experiment-list ul:nth-of-type(odd) li:nth-of-type(5n + 1) {
  background: var(--sticky-note-yellow);
}

#experiment-list ul:nth-of-type(odd) li:nth-of-type(5n + 2) {
  background: var(--sticky-note-green);
}

#experiment-list ul:nth-of-type(odd) li:nth-of-type(5n + 3) {
  background: var(--sticky-note-blue);
}

#experiment-list ul:nth-of-type(odd) li:nth-of-type(5n + 4) {
  background: var(--sticky-note-purple);
}

/* poster */
#posters {
  background: var(--orange-light);
}

.poster-grid-item {
  text-align: center;
}

.poster img {
  background: white;
  display: block;
  position: relative;
  margin: auto;
  max-height: 300px;
  margin-bottom: 1em;
  border: var(--border-width) solid black;
}

/* shelf */
.grid .shelf-grid-item {
  position: relative;
}

.grid .shelf-grid-item:nth-child(2) {
  grid-row: 2 / 2;
}

.grid .shelf-grid-item:nth-child(4) {
  grid-row: 4 / 4;
}

.grid .shelf-grid-item:nth-child(6) {
  grid-row: 6 / 6;
}

.grid .shelf-grid-item:nth-child(8) {
  grid-row: 8 / 8;
}

.grid .shelf-grid-item:nth-child(10) {
  grid-row: 10 / 10;
}

.grid .shelf-grid-item:nth-child(12) {
  grid-row: 12 / 12;
}

.grid .shelf-grid-item:nth-child(14) {
  grid-row: 14 / 14;
}

.grid .shelf-grid-item:nth-child(16) {
  grid-row: 16 / 16;
}

.grid .shelf-grid-item:nth-child(18) {
  grid-row: 18 / 18;
}

.grid .shelf-grid-item:nth-child(20) {
  grid-row: 20 / 20;
}

.grid .shelf-grid-item:nth-child(22) {
  grid-row: 22 / 22;
}

.grid .shelf-grid-item:nth-child(24) {
  grid-row: 24 / 24;
}

.shelf {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% + 2em);
  margin: -1.75em 0 0 -1.5em;
  background: white;
}

.shelf::before,
.shelf::after {
  content: " ";
  position: absolute;
  width: 100%;
  bottom: 0;
  left: 0;
  background: white;
}

.shelf::before {
  border: var(--border-width) solid black;
  height: 60px;
  bottom: calc(50px - 12px);
  transform: SkewX(-20deg);
  transform-origin: bottom left;
}

.shelf::after {
  height: 40px;
  border: var(--border-width) solid black;
  background: white;
}

/* zine title */
h3.zine-title {
  position: relative;
  background: white;
  border: var(--border-width) solid black;
  display: inline-block;
  margin: 0 auto -4em;
  z-index: 100;
  padding: 0.5em 0.35em;
}

.zine-title-wrapper {
  position: absolute;
  top: calc(100% - 44px);
  left: 0;
  width: 100%;
}

/* titlebar link */
.star-link {
  position: relative;
  border-bottom: 2px solid transparent;
}

.star-link .star {
  position: relative;
  display: inline-block;
  transition: all 200ms ease;
}

.star-link:hover {
  border-bottom: 2px solid white;
}

.star-link:hover .star:nth-child(1) {
  transform: rotate(-20deg) translateX(-2px) translateY(-4px);
}

.star-link:hover .star:nth-child(2) {
  transform: rotate(20deg) translateX(2px) translateY(-4px);
}

/* .star-link::before {
    position: absolute;
    content: ' ';
    top: 0;
    left: 1ch;
    height: 100%;
    width: 0;
    background: rgba(255,255,255,.25);
    transform-origin: center;
    transition: width 500ms cubic-bezier(0.215, 0.610, 0.355, 1);
} */
/* .star-link:hover::before {
    width: 100%;
    width: calc(100% - 2ch);
} */

#covers {
  max-width: 350px;
}

/* homepage lists */
#index {
  max-width: 900px;
  margin: auto;
  font-size: 19px;
  color: black;
  line-height: 1.8em;
}

#index ul {
  list-style-type: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

#index li a {
  position: relative;
  display: table-cell;
  vertical-align: middle;
  padding: 0.5em;
  background: white;
  color: black;
  border: 2px solid black;
  text-decoration: underline;
  line-height: 1.3em;
  border-radius: 4px;
  height: 4em;
}

#index li a:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(100, 0, 100, 0.25);
}

#index ul:nth-of-type(odd) li:nth-of-type(5n + 0) a {
  background: var(--sticky-note-pink);
}

#index ul:nth-of-type(odd) li:nth-of-type(5n + 1) a {
  background: var(--sticky-note-yellow);
}

#index ul:nth-of-type(odd) li:nth-of-type(5n + 2) a {
  background: var(--sticky-note-green);
}

#index ul:nth-of-type(odd) li:nth-of-type(5n + 3) a {
  background: var(--sticky-note-blue);
}

#index ul:nth-of-type(odd) li:nth-of-type(5n + 4) a {
  background: var(--sticky-note-purple);
}

#index li a::before,
#index li a::after {
  content: " ";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  border: 2px solid black;
  border-radius: 4px;
  z-index: -1;
  transform: translateY(0);
  transform-origin: bottom;
  transition: 300ms all ease;
}

#index li a::before {
  transform: translateY(15px) scale(0.9);
}

#index li a::after {
  transform: translateY(9px) scale(0.95);
}

#index li {
  transition: 300ms all ease;
}

#index li:hover {
  transform: translateY(-10px) rotate(-2deg);
}

#index li:hover a::before {
  transform: translateY(18px) scale(0.9) rotate(4deg);
  z-index: -1;
}

#index li:hover a::after {
  transform: translateY(9px) scale(0.95) rotate(2deg);
  z-index: -1;
}

@media screen and (min-width: 320px) {
  #index ul {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
  }

  #index li {
    display: table;
    text-align: center;
    width: 10em;
    height: 2em;
    padding: 0.5em 0.5em 1.5em;
    flex-shrink: 0;
  }
}

@media screen and (max-width: 400px) {
  #index ul {
    align-items: center;
    justify-content: center;
  }

  #index li {
    width: 8em;
  }
}

/* comic */

.comic {
  background-color: whitesmoke;
}

.comic-pages a:nth-of-type(5n + 0) figcaption span {
  background: var(--sticky-note-pink);
}

.comic-pages a:nth-of-type(5n + 1) figcaption span {
  background: var(--sticky-note-yellow);
}

.comic-pages a:nth-of-type(5n + 2) figcaption span {
  background: var(--sticky-note-green);
}

.comic-pages a:nth-of-type(5n + 3) figcaption span {
  background: var(--sticky-note-blue);
}

.comic-pages a:nth-of-type(5n + 4) figcaption span {
  background: var(--sticky-note-purple);
}

.comic figure {
  padding: 0;
  margin-right: 2px;
  margin-bottom: 2px;
  min-height: 110px;
  border: 2px solid black;
  text-align: center;
  max-height: 110px;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.comic figcaption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  vertical-align: center;
  justify-content: center;
  z-index: 2;
}

.comic figcaption span {
  border: 2px solid black;
  padding: 0.5em;
  background: white;
  color: black;
  max-width: 80%;
}

.comic figure img {
  z-index: -1;
  width: 100%;
  border: none;
  opacity: 0.5;
  transition: 150ms ease-in all;
  /*
    filter: blur(2px);
    transform: scale(1.05);
    */
}

.comic figure:hover img {
  filter: blur(0px);
  opacity: 1;
}

ul.comics-sections-list {
  text-align: left;
  background: var(--orange-light);
  padding: 1em 2.5em;
  border: 1px solid rgba(100, 0, 0, 0.25);
  display: inline-block;
}

/* comic page */
details.comic-transcript[open] {
  background: var(--gray);
  border-radius: 8px;
  padding-top: 20px;
}

details.comic-transcript[open] .button {
  display: none;
}