/*****************************************************************************/
/*
/* Common
/*
/*****************************************************************************/

/* Global Reset */

* {
  margin: 0;
  padding: 0;
}

body {
  background: #fff;
  font: 16px helvetica, arial, clean, sans-serif;
  color: #404040;
}

h1, h2, h3, h4, h5, h6 {
  font-size: 100%;
}

h1 {
  text-align: center;
  font-size: 32px;
  margin: 20px auto 30px auto;
  line-height: 1.5em;
}

h2 {
  font-size: 22px;
  padding-top: 25px;
  padding-bottom: 15px;
  line-height: 1.5em;
}

p {
  margin: 1em 0;
}

a {
  color: #0074D9;
  background-color: transparent;
  -webkit-text-decoration-skip: objects;
  text-decoration: none;
  transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}
a:active,
a:hover {
  outline-width: 0;
  color: #fd657a;
}

h1 a {
  color: #404040;
}

table {
  font-size: inherit;
  font: 100%;
}

.clear {
  clear: both;
  height: 0;
}

/*****************************************************************************/
/*
/* Home
/*
/*****************************************************************************/

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 12px 0 32px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.site-header::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: #fd657a;
}

.publication-name {
  color: #404040;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 7vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.publication-byline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #737982;
  font-size: 13px;
  line-height: 1.4;
}

/*****************************************************************************/
/*
/* Site
/*
/*****************************************************************************/

.site {
  font-size: 15px;
  min-width: 300px;
  max-width: 900px;
  margin: 30px auto;
  padding: 0 20px;
  line-height: 140%;
}

.title {
  color: #404040;
  font-weight: bold;
  font-size: 18px;
  text-align: left;
  flex-shrink: 0;
}

.site .title a {
  color: #404040;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.title img {
  margin: 0;
}

.title .brand-logo {
  width: 28px;
  height: 28px;
}

.title .brand-wordmark {
  width: 110px;
  height: auto;
  padding-bottom: 5px;
}

@media (prefers-reduced-motion: no-preference) {
  .title img {
    transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .site .title a:focus-visible .brand-logo {
    transform: translateY(-2px) rotate(-8deg) scale(1.06);
  }

  .site .title a:focus-visible .brand-wordmark {
    transform: translateY(-1px);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .site .title a:hover .brand-logo {
    transform: translateY(-2px) rotate(-8deg) scale(1.06);
  }

  .site .title a:hover .brand-wordmark {
    transform: translateY(-1px);
  }
}

@media only screen and (max-width: 340px) {
  .site {
    padding: 0 9px
  }
}

#followme {
  font-size: 80%;
  color: #666;
  margin-top: 40px;
}

.rounded {
  border-radius: 20px;
}

#footer {
  font-size: 70%;
  color: #aeb4bb;
  padding-top: 45px;
  margin-top: 20px;
  text-align: center;
}

.footer-signup {
  max-width: 600px;
  margin: 0 auto 32px;
  padding-top: 32px;
  border-top: 1px solid #eee;
  font-size: 14px;
}

.footer-signup h2 {
  margin: 0 0 10px;
  padding: 0;
  color: #404040;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.signup-form {
  max-width: 420px;
  margin: 0 auto;
}

.signup-content {
  display: grid;
}

.signup-entry,
.signup-confirmation {
  grid-area: 1 / 1;
}

.signup-content[data-state="success"] .signup-entry {
  visibility: hidden;
}

.signup-confirmation {
  align-self: center;
  max-width: 420px;
  margin: 0 auto;
  color: #737982;
  line-height: 1.6;
  outline: none;
}

#footer .signup-confirmation p {
  margin: 0;
}

#footer .signup-confirmation-title {
  margin-bottom: 6px;
  color: #49614d;
  font-size: 18px;
  font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
  .signup-confirmation.is-entering {
    animation: signup-confirmation-in 450ms ease-out both;
  }
}

@keyframes signup-confirmation-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.signup-fields {
  display: flex;
  gap: 8px;
}

.signup-fields input,
.signup-fields button {
  box-sizing: border-box;
  min-height: 44px;
  border: 1px solid #e2e4e7;
  border-radius: 8px;
  padding: 11px 14px;
  font: inherit;
}

.signup-fields input {
  flex: 1;
  min-width: 0;
  background: #fff;
  color: #404040;
  font-size: 16px;
}

.signup-fields input::placeholder {
  color: #737982;
}

.signup-fields button {
  border-color: transparent;
  background: #fd657a;
  color: #4d0f18;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.signup-fields button:hover:not(:disabled) {
  background: #f7536b;
}

.signup-fields input:focus-visible,
.signup-fields button:focus-visible {
  outline: 2px solid #9c2439;
  outline-offset: 3px;
}

.signup-fields button:disabled {
  opacity: 0.65;
  cursor: wait;
}

#footer .signup-status {
  min-height: 21px;
  margin: 10px 0 0;
  color: #737982;
  font-size: 13px;
  line-height: 1.6;
}

#footer .signup-status[data-state="error"] {
  color: #9c2439;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media only screen and (max-width: 420px) {
  .signup-fields {
    flex-direction: column;
  }
}

#footer img {
  margin: 0 auto;
  display: inline-block;
}

#footer .footer-logo {
  position: relative;
  display: inline-block;
  line-height: 0;
}

#footer .footer-logo::before,
#footer .footer-logo::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  opacity: 0;
  pointer-events: none;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

#footer .footer-logo::before {
  top: 6px;
  left: -14px;
  background: #fd657a;
}

#footer .footer-logo::after {
  top: -4px;
  right: -14px;
  background: #fed04a;
}

@media (prefers-reduced-motion: no-preference) {
  #footer .footer-logo:focus-visible img {
    animation: footer-logo-tumble 900ms ease-in-out;
  }

  #footer .footer-logo:focus-visible::before,
  #footer .footer-logo:focus-visible::after {
    animation: footer-logo-sparkle 900ms ease-out;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  #footer .footer-logo:hover img {
    animation: footer-logo-tumble 900ms ease-in-out;
  }

  #footer .footer-logo:hover::before,
  #footer .footer-logo:hover::after {
    animation: footer-logo-sparkle 900ms ease-out;
  }
}

@keyframes footer-logo-tumble {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  18% {
    transform: translateY(1px) rotate(-12deg) scale(1.08, 0.92);
  }
  50% {
    transform: translateY(-16px) rotate(180deg) scale(1.04);
  }
  74% {
    transform: translateY(0) rotate(360deg) scale(1.14, 0.86);
  }
  88% {
    transform: translateY(-3px) rotate(360deg) scale(0.98, 1.02);
  }
  100% {
    transform: translateY(0) rotate(360deg) scale(1);
  }
}

@keyframes footer-logo-sparkle {
  0%, 25% {
    opacity: 0;
    transform: translateY(0) scale(0) rotate(-20deg);
  }
  45% {
    opacity: 1;
    transform: translateY(-5px) scale(1) rotate(15deg);
  }
  80%, 100% {
    opacity: 0;
    transform: translateY(-12px) scale(0.4) rotate(40deg);
  }
}

#footer p {
    margin-top: 5px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 14px 0 10px;
  font-size: 12px;
}

#footer a {
    color: #aeb4bb;
    text-decoration: none;
}
a#monotropic {
    color: #aeb4bb;
    text-decoration: underline;
    text-decoration-style: wavy;
    text-underline-offset: 3px;
    text-decoration-color: #fed04a;
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out, text-decoration-color 0.2s ease-in-out;
}
#footer a:hover {
    color: #fd657a;
    text-decoration-color: #fd657a;
}

.post {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.content > .post:first-child {
  border-top: none;
  margin-top: 0;
}

.meta {
  color: #aeb4bb;
  font-size: 80%;
  font-weight: 400;
  text-align: center;
}

.markdown {
  font-family: serif;
  margin-top: 2em;
  font-size: 18px;
  line-height: 150%;
}

.markdown p, .markdown h2 {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.markdown .post-signature {
  width: 200px;
  height: auto;
  margin: 0 0 12px;
}

.footnotes {
  font-size: 90%;
}

.padded {
  margin: 40px auto;
}

img {
  display: block;
  margin: 10px auto;
  max-width: 100%;
}

img.photograph {
  margin-top: 40px !important;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

img.photograph:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.twitter-tweet {
  margin: 0 auto;
  margin-top: 30px !important;
}

/* standard */

ul, ol {
  margin-left: 1.35em;
}

pre {
  border: 1px solid #ddd;
  background-color: #eef;
  padding: 0 .4em;
  overflow: scroll;
}

code {
  border: 1px solid #ddd;
  background-color: #eef;
  font-size: 85%;
  padding: 0 .2em;
}

pre code {
  border: none;
}

cite {
  padding-left: 20px;
  color: #aaa;
  font-style: italic;
  font-weight: 300;
  display: block;
  margin-bottom: 50px;
}

blockquote {
  padding-left: 15px;
  border-left: 4px solid #eee;
  font-style: italic;
  color: #808080;
}

p.caption {
  margin-top: 0;
  font-size: 80%;
  color: #b2b2b2;
  text-align: center;
  font-style: italic;
}

.pagination {
  margin-top: 60px;
  text-align: center;
}

.currentPage {
  font-family: cursive;
  color: #aeb4bb;
}

a.hidden {
  visibility: hidden;
}

a.newer {
  float: left;
  z-index: 2;
}

a.older {
  float: right;
  z-index: 2;
}
