@import url('https://fonts.bunny.net/css2?family=Inria+Serif');

:root {
  --page-bg: #fffafb;
  --card-bg: #fffafb;
  --border: #ecb4cc;
  --border-soft: #d9a3b7;
  --text: #151515;
  --pink: #efa3bb;
  --pink-strong: #ff0073;
  --muted: #5c5357;
  --shadow: rgba(0,0,0,0.22);
}

body {
  margin: 0;
  background: #0d0c0c url("/assets/blackhearts.jpg") repeat;
  font-family: 'Inria Serif';
  line-height: 1.6;
  font-size: 14px;
  letter-spacing: .6px;
  color: var(--text);
}
html, a {
  cursor: url("/assets/heart.png"), auto;
}
a {
  color: var(--pink);
  text-decoration-thickness: 1px;
}
a:visited {
  color: #9c9393;
}
a:hover, a:active {
  font-style: italic;
}
strong, b {
  color: var(--pink-strong);
}
 ::-webkit-scrollbar {
     width: 10px;
}
 ::-webkit-scrollbar-track {
     background-color: #505455;
}
 ::-webkit-scrollbar-thumb {
     background-color: #ebacbf;
}
code {
  padding: .05rem .3rem;
  border: 1px dashed var(--border-soft);
  border-radius: .35rem;
  background: rgba(236, 180, 204, .18);
  overflow-wrap: anywhere;
}
.tutorial-page {
  width: min(920px, calc(100% - 1.5rem));
  margin: 1.25rem auto;
}
.tutorial-intro, .tutorial-card, .tutorial-footer {
  background: var(--card-bg);
  border: 3px solid var(--border);
  border-radius: 1em;
  box-shadow: .25em .25em .5em var(--shadow);
}
.tutorial-intro {
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
}
.tutorial-intro h1 {
  margin: 0 0 .45rem;
  color: var(--pink);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  text-shadow: 1px 1px 1px #fff;
}
.tutorial-intro p {
  max-width: 720px;
  margin: 0 auto;
}
.tutorial-card {
  padding: 1rem;
  margin-bottom: 1rem;
}
.tutorial-card h2 {
  margin: 0 0 .65rem;
  color: var(--pink);
  text-align: center;
  font-size: 1.45rem;
  line-height: 1.2;
  text-shadow: 1px 1px 1px #fff;
}
.tutorial-card h3 {
  margin: 0 0 .35rem;
  color: #b76a91;
  font-size: 1.05rem;
}
.tutorial-card p {
  margin: .5rem 0;
}
.inline-icon {
  display: inline-block;
  max-height: 1.5rem;
  width: auto;
  vertical-align: middle;
  border: 1px solid var(--border-soft);
  border-radius: .25rem;
  padding: .1rem;
  background: #222;
}
.login-box {
  display: grid;
  gap: .25rem;
  margin: .8rem auto;
  padding: .75rem;
  max-width: 27rem;
  border: 1px dashed var(--border-soft);
  border-radius: .75rem;
  background: rgba(236, 180, 204, .16);
}
.login-box p {
  margin: 0;
}
.small-note {
  color: var(--muted);
  font-size: .95em;
  text-align: center;
}
.tutorial-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .85rem;
}
.tutorial-steps > li {
  counter-increment: step;
  position: relative;
  padding: .85rem;
  border: 1px dashed var(--border-soft);
  border-radius: .75rem;
  background: rgba(236, 180, 204, .10);
}
.tutorial-steps > li::before {
  content: counter(step);
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  color: var(--pink-strong);
  background: #fff;
  font-weight: bold;
}
figure {
  margin: .75rem auto;
  text-align: center;
}
figure img {
  display: block;
  max-width: min(100%, 520px);
  height: auto;
  margin: 0 auto;
  border: 2px solid var(--border-soft);
  border-radius: .65rem;
  box-shadow: .2em .2em .45em rgba(0,0,0,.18);
}
figure .zip-preview,
.zip-preview {
  max-width: 260px;
}
figcaption {
  margin-top: .35rem;
  color: var(--muted);
  font-size: .92em;
  line-height: 1.35;
}
.tutorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}
.tutorial-grid .tutorial-card {
  margin-bottom: 0;
}
.rule-list {
  margin: .5rem 0 0;
  padding-left: 1.2rem;
}
.rule-list li {
  margin: .35rem 0;
}
.warning-card {
  background:
    linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)),
    #ffe8f1;
}
.help-card {
  background:
    linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)),
    #ffe8f1;
}
.tutorial-footer {
  width: min(475px, calc(100% - 1.5rem));
  margin: 1rem auto;
  padding: .85rem;
  text-align: center;
}
.tutorial-footer a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  text-decoration: none;
}
.tutorial-footer img {
  max-height: 110px;
  width: auto;
}

@media (max-width: 760px) {
  body {
    font-size: 13px;
    letter-spacing: .35px;
  }
  .tutorial-page {
    width: min(100% - 1rem, 920px);
    margin: .75rem auto;
  }
  .tutorial-card, .tutorial-intro {
    padding: .85rem;
  }
  .tutorial-grid {
    grid-template-columns: 1fr;
  }
  .tutorial-steps > li::before {
    position: static;
    margin: 0 auto .45rem;
  }
}