/* all my colours are up here. change these and the whole site changes */
:root {
  --milk: #f7f2f6;
  --mist: #e9deea;
  --ink: #2a1c33;
  --soft: #7a6584;
  --line: #d9c7d6;
  --wine: #7a2142;
  --blush: #e6b3c4;
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink);
  font: 500 20px/1.65 "Cormorant Garamond", Georgia, serif;
  background-color: var(--milk);
  /* tiny dots, like screentone */
  background-image: radial-gradient(rgba(122, 33, 66, .07) 1px, transparent 1.2px);
  background-size: 9px 9px;
}
a { color: var(--wine); }
header, main { max-width: 760px; margin: 0 auto; padding: 0 22px; }

/* header */
header { padding-top: 44px; text-align: center; }
.site-name {
  font: 400 clamp(3.2rem, 14vw, 5.5rem)/1.05 "Pinyon Script", "Brush Script MT", cursive;
  color: var(--wine); text-decoration: none; display: block;
  text-shadow: 0 0 22px rgba(230, 179, 196, .9);
}
.tagline { margin: 4px 0 0; color: var(--soft); font-style: italic; font-size: 1.1em; }
nav { margin: 26px 0 0; display: flex; justify-content: center; gap: 34px; }
nav a { color: var(--ink); text-decoration: none; font-style: italic; font-size: 1.15em; }
nav a:hover, nav a.here { color: var(--wine); text-decoration: underline wavy var(--blush); text-underline-offset: 6px; }
/* little rule with a diamond in the middle */
.rule { height: 1px; background: var(--line); margin: 22px auto 0; max-width: 760px; position: relative; }
.rule::after {
  content: ""; position: absolute; left: 50%; top: -5px; width: 9px; height: 9px;
  background: var(--wine); transform: translateX(-50%) rotate(45deg); outline: 5px solid var(--milk);
}

main { padding-bottom: 90px; padding-top: 10px; }
h1, h2 { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 600; line-height: 1.2; color: var(--wine); }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; margin-top: 2em; }

/* updates */
.updates { list-style: none; padding: 0; margin: 0; }
.updates li { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px dotted var(--blush); }
.updates time { color: var(--soft); font-style: italic; }

/* the arched covers (my favourite bit) */
.cover {
  aspect-ratio: 2 / 3; padding: 6px; background: var(--mist);
  border: 1px solid var(--wine);
  border-radius: 50% 50% 2px 2px / 33% 33% 2px 2px;
  overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50% 50% 0 0 / 34% 34% 0 0; }
.book:hover .cover { transform: translateY(-5px); box-shadow: 0 8px 26px rgba(230, 179, 196, .9); }

/* manga list */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 34px 24px; }
.book { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; text-align: center; }
.book .cover { margin-bottom: 10px; }
.book strong { font-size: 1.15em; font-weight: 600; line-height: 1.25; }
.book span { color: var(--soft); font-style: italic; }

/* one series */
.back { display: inline-block; margin: 14px 0; font-style: italic; }
.series { display: grid; grid-template-columns: 200px 1fr; gap: 30px; align-items: start; }
.series h1 { margin-top: 0; }
.status { color: var(--soft); font-style: italic; margin-top: -10px; }
.chapters { list-style: none; padding: 0; margin: 0; }
.chapters li { padding: 10px 0; border-bottom: 1px dotted var(--blush); }
.chapters a { text-decoration: none; font-size: 1.1em; }
.chapters a:hover { text-decoration: underline wavy var(--blush); text-underline-offset: 5px; }

/* reader (dark so it's easy on the eyes at night) */
.reader { background: #16101d; color: #efe6f0; background-image: none; }
.reader .tagline, .reader nav, .reader .rule { display: none; }
.reader header { padding-top: 14px; }
.reader .site-name { font-size: 2.4rem; color: var(--blush); text-shadow: none; }
.reader main { max-width: 860px; padding: 0; }
.bar { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: center; padding: 14px 20px; }
.bar a { color: var(--wine); }
.reader .bar a, .night .bar a { color: var(--blush); }
.bar span { display: flex; gap: 18px; }
.bar select { font: inherit; padding: 3px 8px; background: var(--milk); color: inherit; border: 1px solid var(--line); border-radius: 3px; }
.reader .bar select, .night .bar select { background: #241a2e; border-color: #4a3a58; }
.pages img { display: block; width: 100%; height: auto; }
.msg { padding: 30px 20px; text-align: center; color: var(--soft); }

@media (max-width: 560px) {
  .series { grid-template-columns: 1fr; }
  .series .cover { max-width: 200px; }
  .updates li { grid-template-columns: 1fr; gap: 0; }
}

/* light novel reader */
.text { max-width: 34em; margin: 0 auto; padding: 10px 22px 50px; font-size: 1.1em; line-height: 1.95; }
.text h1 { text-align: center; margin-bottom: 1.2em; }
.text p { margin: 0 0 1.1em; }
.text .brk { text-align: center; color: var(--wine); margin: 1.8em 0; }
.text .brk::before { content: "\25C7"; }
.tools { display: flex; gap: 8px; }
.tools button { font: inherit; background: none; color: inherit; border: 1px solid var(--line); border-radius: 3px; padding: 0 10px; cursor: pointer; }
/* dark mode for novels */
.night { background-color: #16101d; background-image: none; color: #efe6f0; }
.night a, .night nav a:hover, .night nav a.here { color: var(--blush); }
.night nav a { color: #efe6f0; }
.night .site-name { color: var(--blush); text-shadow: none; }
.night h1, .night h2, .night .text .brk { color: var(--blush); }
.night .rule { background: #3a2c47; }
.night .rule::after { background: var(--blush); outline-color: #16101d; }
