@font-face {
  font-family: "Ringbearer";
  font-display: swap;
  src: url("assets/fonts/ringbearer-medium.ttf") format("truetype");
}

@font-face {
  font-family: "LionKing";
  font-display: swap;
  src: url("assets/fonts/lion_king.ttf") format("truetype");
}

body {
  font-family: Arial, sans-serif;
  max-width: 900px;
  margin: 48px auto;
  padding: 0 20px;
  line-height: 1.5;
  font-size: 26px;
  color: #111;
  background: #fff;
}

body.dark-mode {
  color: #eee;
  background: #111;
}

html.dark-mode body {
  color: #eee;
  background: #111;
}

body.dark-mode a {
  color: #9ecbff;
}

html.dark-mode body a {
  color: #9ecbff;
}

body.dark-mode .comic-preview img {
  border-color: #555;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

html.dark-mode body .comic-preview img {
  border-color: #555;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

body.dark-mode .collaborator-card,
body.dark-mode .template-note {
  border-color: #555;
  background: #191919;
}

html.dark-mode body .collaborator-card,
html.dark-mode body .template-note {
  border-color: #555;
  background: #191919;
}

body.dark-mode .collaborator-art {
  border-color: #777;
  background: #2a2a2a;
}

html.dark-mode body .collaborator-art {
  border-color: #777;
  background: #2a2a2a;
}

#build-version {
  position: fixed;
  top: 8px;
  left: 8px;
  font-size: 18px;
  color: #666;
}

h1 {
  font-size: 68px;
  margin-bottom: 8px;
}

h2 {
  font-size: 36px;
  margin: 0 0 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 20px;
}

th,
td {
  padding: 12px;
  border: 1px solid #999;
  text-align: left;
  vertical-align: top;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
  font-size: 20px;
}

.site-nav a[aria-current="page"] {
  font-weight: bold;
}

.theme-button {
  align-items: center;
  border: 1px solid #333;
  background: #eee;
  color: #111;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  font: inherit;
  line-height: 1;
  padding: 6px 10px;
}

body.dark-mode .theme-button,
html.dark-mode body .theme-button {
  border-color: #777;
  background: #222;
  color: #eee;
}

.inline-theme-button {
  margin: 0 4px;
  vertical-align: middle;
}

.bulb-icon {
  display: block;
  flex: 0 0 auto;
  height: 1.1em;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 1.1em;
}

.bulb-icon-on {
  color: #f5b700;
}

.bulb-icon-off {
  color: currentColor;
}

.soon {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 14px;
}

.page-intro {
  margin: 0 0 22px;
}

.collaborator-grid {
  display: grid;
  gap: 18px;
}

.collaborator-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 20px;
  border: 2px solid #111;
  background: #fafafa;
}

.collaborator-art {
  display: grid;
  min-height: 140px;
  place-items: center;
  border: 2px solid #111;
  background: #eee;
  font-size: 36px;
  font-weight: bold;
}

.collaborator-label {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
}

.quip,
.connection {
  margin: 0 0 16px;
}

.card-link {
  font-weight: bold;
}

.template-note {
  margin-top: 24px;
  padding: 20px;
  border: 2px solid #111;
  background: #fafafa;
}

.comic-preview {
  margin: 20px 0 0;
}

.comic-preview img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid #111;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
}

body.tingles-page {
  min-height: calc(100vh - 96px);
  text-align: center;
}

.tingles-incantation {
  color: #b58a2a;
  font-family: "Ringbearer", "Cinzel Decorative", "Uncial Antiqua", "Palatino Linotype", Georgia, serif;
  font-size: clamp(1.35rem, 8.8vw, 4.8rem);
  letter-spacing: 0;
  line-height: 1.08;
  margin: clamp(2rem, 8vh, 5rem) auto 0;
  max-width: min(100%, 13em);
  overflow-wrap: normal;
  text-shadow:
    1px 1px 0 #6f4d10,
    2px 2px 0 #3d2a09,
    3px 3px 0 #1f1606,
    -1px -1px 0 #d1ad52,
    0 0 16px rgba(181, 138, 42, 0.35);
  white-space: nowrap;
}

.tingles-prompt {
  color: #111;
  font-family: Arial, sans-serif;
  font-size: 60%;
  line-height: 1.25;
  margin-bottom: 0.35em;
  text-shadow: none;
}

body.dark-mode .tingles-prompt,
html.dark-mode body .tingles-prompt {
  color: #eee;
}

.tingles-lion {
  color: #d9982d;
  font-family: "LionKing", "Ringbearer", "Cinzel Decorative", "Uncial Antiqua", Georgia, serif;
  font-size: clamp(2.1rem, 14vw, 8rem);
  line-height: 0.95;
  margin-top: clamp(2rem, 7vh, 4.5rem);
  text-shadow:
    1px 1px 0 #75410e,
    2px 2px 0 #3a2109,
    0 0 18px rgba(217, 152, 45, 0.28);
}

form {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

input {
  font-size: 26px;
  padding: 10px;
  min-width: 0;
  flex: 1 1 360px;
  border: 1px solid #999;
}

button {
  font-size: 26px;
  padding: 10px 16px;
  border: 1px solid #333;
  background: #eee;
  cursor: pointer;
}

@media (max-width: 700px) {
  body {
    max-width: none;
    margin: 32px auto;
    font-size: 20px;
  }

  #build-version {
    font-size: 14px;
  }

  h1 {
    font-size: 46px;
  }

  .soon {
    font-size: 26px;
  }

  h2 {
    font-size: 30px;
  }

  table {
    font-size: 18px;
  }

  th,
  td {
    padding: 8px;
  }

  .site-nav {
    font-size: 20px;
  }

  .collaborator-card {
    grid-template-columns: 1fr;
  }

  .collaborator-art {
    min-height: 120px;
    font-size: 34px;
  }

  .collaborator-label {
    font-size: 16px;
  }

  input,
  button {
    width: 100%;
    font-size: 22px;
  }
}
