/* ————————————————————————————————
   kireibi css
———————————————————————————————— */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/geist-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Manufacturing Consent";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/manufacturing-consent-latin.woff2") format("woff2");
}



:root {
  --paper: #f7f5f2;
  --ink: #0d0d0d;
  --pink: #f7e8eb;
  --pink-pressed: #f3c6d0;
  --radius-box: 26px;
  --border: 1px solid var(--ink);
  --shadow-pill: 4px 4px 0 rgba(13, 13, 13, 0.85);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Geist", sans-serif;
  overflow: auto;
}

em, i {
  font-family: Georgia, 'Times New Roman', Times, serif;
}

/* ————— text links ————— */

.welcome a,
.modal a,
.changelog-list a,
.subpage-box a:not(.back-home) {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  padding: 1px 3px;
  margin: -1px -3px;
  border-radius: 6px;
  transition: background 0.12s ease;
}

.welcome a:hover,
.modal a:hover,
.changelog-list a:hover,
.subpage-box a:not(.back-home):hover {
  background: var(--pink-pressed);
}


/* ————— subpages ————— */
.subpage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 24px 90px;
}

.logo-small {
  font-family: "Manufacturing Consent", system-ui;
  font-size: 72px;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  user-select: none;
}

.subpage-box {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 23.5vh;
  width: min(51vw, 1020px);
  min-height: 54vh;
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius-box);
  padding: 54px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.subpage-box h1 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 22px;
}

.subpage-box p {
  font-size: 13px;
  line-height: 1.55;
}


/* back to the homepage link */
.back-home {
  position: fixed;
  top: 18px;
  left: 26px;
  z-index: 40;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.back-home:hover {
  text-decoration: underline;
}


/* guestbook (atabook embed) */
.subpage-box.no-box {
  background: none;
  border: none;
  padding: 0;
}

.gb-frame {
  width: 100%;
  height: 900px;
  flex: none;
  border: none;
}

.gb-alt {
  margin-top: 14px;
  font-size: 12px;
}

.sitemap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 13px;
}


/* ————— physics animation ————— */
#flower-field {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

#flower-field img {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
}

#flower-field img:active {
  cursor: grabbing;
}


/* ————— top-right link ————— */
.tongue-link {
  position: fixed;
  top: 18px;
  right: 26px;
  z-index: 40;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  cursor: pointer;
}

.tongue-link:hover {
  text-decoration: underline;
}


/* ————— container ————— */
.container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100vh;
  max-width: 2000px;
  margin: 0 auto;
}

.logo {
  position: absolute;
  top: 3%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  font-family: "Manufacturing Consent", system-ui;
  font-weight: 400;
  font-size: clamp(72px, 14vw, 260px);
  line-height: 1;
  letter-spacing: -.01em;
  user-select: none;
}

.logo a {
  color: inherit;
  text-decoration: none;
}

/* ————— main box ————— */

.main-box {
  position: absolute;
  left: 24%;
  top: 23.5%;
  width: 51%;
  height: 54%;
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius-box);
  z-index: 3;
}

.sitemap {
  position: absolute;
  top: 22px;
  right: 30px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}

.sitemap:hover {
  text-decoration: underline;
}

.welcome {
  position: absolute;
  left: 50%;
  top: 20%;
  transform: translateX(-50%);
  width: min(460px, 82%);
  text-align: center;
  font-size: 13px;
  line-height: 1.55;
}

.welcome h2 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 26px;
}

.welcome p + p {
  margin-top: 18px;
}

.box-footer {
  position: absolute;
  left: 38px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 18px;
  font-weight: 800;
}

.box-footer a {
  color: var(--ink);
  text-decoration: none;
}

.box-footer a:hover {
  text-decoration: underline;
}

.box-footer .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
}


/* ————— pink nav ————— */
.nav-box {
  position: absolute;
  left: 14.5%;
  top: 28%;
  width: 15%;
  min-width: 240px;
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius-box);
  padding: 42px 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 4;
}

.pill {
  display: block;
  background: var(--pink);
  border: var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-pill);
  padding: 11px 14px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.25;
  transition: transform 0.09s ease, box-shadow 0.09s ease, background 0.09s ease;
}

.pill:hover {
  background: var(--pink-pressed);
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 rgba(13, 13, 13, 0.85);
}


/* ————— changelog ————— */
.changelog-box {
  position: absolute;
  left: 55%;
  top: 67%;
  width: 17.5%;
  min-width: 280px;
  min-height: 170px;
  background: var(--paper);
  border: var(--border);
  border-radius: 22px;
  padding: 40px 26px 24px;
  z-index: 5;
}

.changelog-tab {
  position: absolute;
  top: 0;
  left: 20px;
  transform: translateY(-50%);
  background: var(--paper);
  border: var(--border);
  border-radius: 999px;
  padding: 7px 22px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: var(--shadow-pill);
}

.changelog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.changelog-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.changelog-list b {
  font-weight: 800;
  white-space: nowrap;
}


/* ————— ants ————— */
.ants {
  position: absolute;
  left: calc(max(75%, 55% + max(17.5%, 280px)) + 16px);
  top: 64.5%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 5;
}

.ant {
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  line-height: 0;
}

.ant img {
  width: 15px;
  height: auto;
  display: block;
  transition: transform 0.15s ease;
}

.ant:nth-child(1) { transform: translateX(3px) rotate(-8deg); }
.ant:nth-child(2) { transform: translateX(-2px) rotate(6deg); }
.ant:nth-child(3) { transform: translateX(4px) rotate(-4deg); }
.ant:nth-child(4) { transform: translateX(-2px) rotate(8deg); }
.ant:nth-child(5) { transform: translateX(-4px) rotate(-18deg); }
.ant:nth-child(6) { transform: translateX(-13px) rotate(42deg); }
.ant:nth-child(7) { transform: translateX(-28px) translateY(-8px) rotate(70deg); }

.ant:hover img {
  transform: scale(1.35);
}


/* ————— modals ————— */
.modal {
  position: fixed;
  z-index: 60;
  width: min(340px, 86vw);
  background: var(--paper);
  border: var(--border);
  border-radius: 22px;
  padding: 34px 28px 28px;
  cursor: grab;
  touch-action: none;
}

.modal.dragging {
  cursor: grabbing;
}

.modal h3 {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}

.modal p {
  font-size: 11.5px;
  line-height: 1.55;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  padding: 4px;
}

.modal-close:hover {
  transform: scale(1.2);
}

/* smaller screens */
body {
  min-width: 1100px;
}

/* ————— smaller pc screens —————*/
@media (max-width: 1600px), (max-height: 950px) {
  .nav-box {
    top: 21.5%;
    min-width: 228px;
    padding: 28px 18px;
    gap: 16px;
  }

  .pill {
    font-size: 11px;
    padding: 10px 12px;
  }

  .welcome {
    top: 15%;
  }

  .welcome h2 {
    margin-bottom: 20px;
  }

  .welcome p + p {
    margin-top: 14px;
  }

  .sitemap {
    font-size: 14px;
  }

  .box-footer {
    left: 30px;
    bottom: 20px;
    font-size: 14px;
    gap: 22px;
  }

  .box-footer .dot {
    width: 9px;
    height: 9px;
  }

  .changelog-box {
    min-width: 254px;
    min-height: 150px;
    padding: 34px 20px 20px;
    top: 72%;
    left: 58%;
  }

  .changelog-list {
    font-size: 12px;
  }

  /* keep the ants near */
  .ants {
    left: calc(max(75%, 55% + max(17.5%, 254px)) + 14px);
  }
}

@media (max-width: 1360px) {
  .welcome {
    top: 13%;
    width: min(400px, 74%);
    font-size: 12px;
  }

  .welcome h2 {
    font-size: 14px;
  }
}


/* ————— lore ————— */
.credits {
  margin: 3em 0 0 0;
  font-size: 13px;
}

.credits h4 {
  margin-bottom: 10px;
}