@font-face {
  font-family: "Comicoro";
  src:
    url("../../../font/Comicoro.woff2") format("woff2"),
    url("../../../font/Comicoro.woff") format("woff"),
    url("../../../font/Comicoro.ttf") format("truetype");
}

@font-face {
  font-family: "Alagard";
  src:
    url("../../../font/Alagard.woff2") format("woff2"),
    url("../../../font/Alagard.woff") format("woff"),
    url("../../../font/Alagard.ttf") format("truetype");
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #a0adb8;
  --link: #00e5ff;
  --link-visited: #66dceb;
  --link-hover: #66ffff;
  --panel-fill: rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Comicoro", "Cherry Cream Soda", sans-serif;
  line-height: 1.4;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:visited {
  color: var(--link-visited);
}

a:hover,
a:focus {
  color: var(--link-hover);
  text-decoration: underline;
}


header {
  width: min(1000px, 96vw);
  margin: 12px auto 8px;
  padding: 8px 10px 10px;
  border: 6px solid;
  border-image: url("../../../images/ui/speechbox.png") 6 6 6 6 fill / 6px 6px 6px 6px;
  background: var(--panel-fill);
  color: var(--text);
}

header p {
  margin: 0 0 10px;
  font-family: "Alagard", "Comicoro", sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  letter-spacing: 0.03em;
}

header #nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: clamp(1rem, 2vw, 1.3rem);
}

header #nav a,
header #nav a:visited,
header #nav a:hover,
header #nav a:focus {
  color: #ffffff;
  text-decoration: none;
}

#showComic,
.subPage {
  width: min(1000px, 96vw);
  margin: 10px auto;
  padding: 12px;
  border: 6px solid;
  border-image: url("../../../images/ui/mini-node.png") 6 6 6 6 fill / 6px 6px 6px 6px;
  background: var(--panel-fill);
}

#showComic h1,
.subPage h1,
.subPage h2,
#authorNotes h2 {
  margin: 0.2rem 0 0.8rem;
  text-align: center;
  font-family: "Alagard", "Comicoro", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.comicNav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  margin: 8px 0;
  font-size: 1.5rem;
}

.comicNav img {
  width: min(72px, 18vw);
  max-width: 100%;
  height: auto;
}

.comicPage {
  text-align: center;
}

.comicPage img {
  width: min(900px, 100%);
  max-width: 100%;
  height: auto;
  border: 4px solid rgba(255, 255, 255, 0.15);
}

#authorNotes {
  width: min(900px, 96vw);
  margin: 12px auto;
  padding: 10px 12px;
  border: 6px solid;
  border-image: url("../../../images/ui/mini-node.png") 6 6 6 6 fill / 6px 6px 6px 6px;
  background: var(--panel-fill);
}

#authorNotes .writeAuthorNotes {
  color: #e6edf3;
  text-align: left;
  font-size: 22px;
}

.archiveTable {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
}

.archiveTable td {
  padding: 8px 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  vertical-align: middle;
}

.archiveCellTitle {
  text-align: left;
}

.archiveCellDate {
  color: var(--muted);
  text-align: right;
  min-width: 120px;
}

.archiveCellNum {
  text-align: center;
  min-width: 40px;
}

.archiveCellThumb {
  width: 72px;
}

.archiveCellThumb img {
  width: 56px;
  height: auto;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.archiveTable .archiveCellTitle strong {
  font-family: "Comicoro", "Alagard", sans-serif;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.15;
}

.archivePage h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.leftAlignTableText {
  text-align: left;
}

.archiveRow:hover {
  background: rgba(102, 255, 255, 0.08);
  cursor: pointer;
}

.subPage:not(.archivePage) {
  text-align: center;
}

.leftPic {
  clear: left;
  float: right;
  margin-left: 20px;
  margin-bottom: 10px;
}

.rightPic {
  clear: right;
  float: left;
  margin-right: 20px;
  margin-bottom: 10px;
}

.charTable,
.charTable td {
  width: 100%;
}

footer {
  margin: 14px 0 18px;
  text-align: center;
}

footer img {
  opacity: 0.9;
}

footer img:hover {
  opacity: 1;
}

@media (max-width: 700px) {
  #showComic,
  .subPage,
  #authorNotes,
  header {
    width: 98vw;
    padding: 10px;
  }

  .archiveCellDate {
    min-width: 96px;
    font-size: 0.9rem;
  }
}

