@charset "UTF-8";
@font-face {
  font-family: "AN Title";
  src: url(../fonts/title.ttf);
  font-display: swap;
}
@font-face {
  font-family: "AN Body";
  src: url(../fonts/body.ttf);
  font-display: swap;
}
@font-face {
  font-family: "AN Body";
  src: url(../fonts/italic.ttf);
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "AN Body";
  src: url(../fonts/bold.ttf);
  font-weight: 600 700;
  font-display: swap;
}
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.an-body {
  margin: 0;
  font: 400 18px/1.7 "AN Body", "EB Garamond", Georgia, serif;
  color: #f2e8d0;
  overflow-x: hidden;
  background: radial-gradient(ellipse at 15% 10%, rgba(110, 60, 150, 0.35), transparent 55%), radial-gradient(ellipse at 85% 55%, rgba(40, 90, 160, 0.28), transparent 55%), #0e0b22 fixed;
}
.an-body h1, .an-body h2, .an-body h3 {
  font-family: "AN Title", "Cinzel", Georgia, serif;
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 0.5em;
}
.an-body a {
  color: inherit;
}
.an-body [hidden] {
  display: none;
}
.an-body :focus-visible {
  outline: 2px solid #c9a24b;
  outline-offset: 3px;
}

.an-body .an-btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border: 1px solid #c9a24b;
  border-radius: 999px;
  background: #c9a24b;
  color: #0e0b22;
  font: 400 0.82rem "AN Title", "Cinzel", Georgia, serif;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
}
.an-body .an-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.an-body .an-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.an-body .an-btn--ghost {
  background: transparent;
  color: #c9a24b;
}

.an-kicker {
  color: #c9a24b;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
}

#an-sky {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

.an-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 1120px;
  margin: auto;
  padding: 1.2rem 1.25rem;
}
.an-nav .an-logo {
  font: 600 1.45rem "AN Body", "EB Garamond", Georgia, serif;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.an-nav nav {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  font-size: 0.9rem;
}
@media (max-width: 760px) {
  .an-nav nav > a:not(.an-btn) {
    display: none;
  }
}

.an-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  max-width: 1120px;
  margin: auto;
  padding: 4rem 1.25rem 5rem;
}
.an-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
}
.an-hero h1 em {
  color: #c9a24b;
  font-weight: 500;
}
.an-hero .an-lead {
  max-width: 34rem;
  opacity: 0.82;
  margin-bottom: 2rem;
}
.an-hero .an-mandala {
  width: 100%;
  height: auto;
  animation: an-turn 180s linear infinite;
}
@media (max-width: 760px) {
  .an-hero {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }
  .an-hero .an-mandala {
    max-width: 340px;
    margin: auto;
  }
}

@keyframes an-turn {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .an-hero .an-mandala {
    animation: none;
  }
}
.an-features article {
  box-shadow: inset 0 0 30px rgba(201, 162, 75, 0.08);
  transition: transform 0.35s;
}
.an-features article:hover {
  transform: translateY(-6px);
}
.an-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 1120px;
  margin: auto;
  padding: 2rem 1.25rem;
}
.an-features article {
  border: 1px solid rgba(201, 162, 75, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  background: rgba(27, 22, 56, 0.85);
}
.an-features span {
  color: #c9a24b;
  font: italic 1.2rem "AN Body", "EB Garamond", Georgia, serif;
}
.an-features h2 {
  font-size: 1.6rem;
  margin-top: 0.6rem;
}
.an-features p {
  margin: 0;
  opacity: 0.75;
  font-size: 0.92rem;
}

.an-footer {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.65;
  padding: 3rem 1.25rem;
}

.an-nav .an-lang {
  display: inline-flex;
  gap: 0.2rem;
}
.an-nav .an-lang button {
  background: none;
  border: 0;
  color: inherit;
  font: 600 0.8rem "AN Body", "EB Garamond", Georgia, serif;
  padding: 0.3rem 0.45rem;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
}
.an-nav .an-lang button[aria-pressed=true] {
  opacity: 1;
  color: #c9a24b;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 75, 0.6);
}

@media (max-width: 760px) {
  .an-nav .an-logo {
    font-size: 1.15rem;
  }
  .an-nav nav {
    gap: 0.6rem;
  }
  .an-nav .an-btn {
    padding: 0.55rem 0.8rem;
    font-size: 0.8rem;
  }
}
.an-form-wrap {
  max-width: 680px;
  margin: 4rem auto;
  padding: 0 1.25rem;
  text-align: center;
}
.an-form-wrap > h2 {
  font-size: 2.6rem;
}

.an-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  text-align: left;
  background: url(../img/paper.jpg) center/720px;
  color: #3a2816;
  border-radius: 8px;
  padding: clamp(1.25rem, 5vw, 2.5rem);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}
.an-form .an-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 0.88rem;
  min-width: 0;
}
.an-form .an-field--full {
  grid-column: 1/-1;
}
.an-form .an-check {
  grid-column: 1/-1;
  font-size: 0.88rem;
}
.an-form input:not([type=checkbox]) {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid #cfc6b0;
  border-radius: 10px;
  font: 400 1rem "AN Body", "EB Garamond", Georgia, serif;
  background: #fff;
  color: #3a2816;
}
.an-form input:not([type=checkbox]):disabled {
  opacity: 0.45;
}
.an-form small {
  font-weight: 400;
  opacity: 0.7;
}
.an-form .an-row {
  display: flex;
  gap: 0.6rem;
}
.an-form .an-btn--ghost {
  color: #5a2d4f;
  border-color: #5a2d4f;
}
.an-form .an-places {
  display: flex;
  flex-direction: column;
}
.an-form .an-places button {
  text-align: left;
  border: 0;
  border-bottom: 1px solid #ddd4bd;
  background: #fff;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  font: inherit;
}
.an-form .an-places button:hover {
  background: #eee6d2;
}
.an-form .an-msg {
  margin: 0;
  color: #962f2f;
  font-size: 0.9rem;
}
.an-form .an-msg:empty {
  display: none;
}
@media (max-width: 760px) {
  .an-form {
    grid-template-columns: 1fr;
  }
  .an-form .an-field {
    grid-column: 1/-1;
  }
}

.an-manual summary {
  cursor: pointer;
  color: #5a2d4f;
  font-size: 0.88rem;
}
.an-manual div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 0.8rem;
}

.an-form .an-places {
  max-height: 17rem;
  overflow-y: auto;
}
.an-form .an-places button {
  flex: none;
}

.an-result {
  max-width: 920px;
  margin: 5rem auto;
  padding: 0 1.25rem;
}
.an-result > header {
  text-align: center;
}
.an-result > header h2 {
  font-size: clamp(2rem, 6vw, 3.2rem);
}
.an-result .an-toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
}
.an-result .an-toc a {
  border: 1px solid rgba(201, 162, 75, 0.45);
  border-radius: 999px;
  padding: 0.2rem 0.9rem;
  text-decoration: none;
  font-size: 0.92rem;
}
.an-result .an-toc a:hover {
  background: rgba(201, 162, 75, 0.18);
}
.an-result .an-card {
  position: relative;
  color: #3a2816;
  margin-top: 3rem;
  padding: clamp(1.6rem, 6vw, 4.2rem) clamp(1.3rem, 7vw, 5rem);
  background: url(../img/paper.jpg) center top/720px;
  border-radius: 6px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), inset 0 0 90px rgba(120, 75, 25, 0.55), inset 0 0 14px rgba(90, 50, 15, 0.6);
  scroll-margin-top: 1rem;
}
.an-result .an-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 3px double rgba(141, 106, 40, 0.7);
  pointer-events: none;
}
.an-result .an-card > h2 {
  color: #7a261c;
  font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  text-align: center;
  margin-bottom: 2rem;
}
.an-result .an-card > h2 small {
  display: block;
  color: #8d6a28;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}
.an-result .an-card > h2::after {
  content: "✦";
  display: block;
  color: #8d6a28;
  font-size: 1rem;
  margin-top: 0.8rem;
}
.an-result .an-card h3 {
  color: #7a261c;
  font-size: 1.15rem;
  margin: 2.4rem 0 0.7rem;
}
.an-result .an-card > p {
  font-size: 1.1rem;
}
.an-result .an-card > p:first-of-type::first-letter {
  float: left;
  font: 400 3.4rem/0.95 "AN Title", "Cinzel", Georgia, serif;
  color: #7a261c;
  padding: 0.1rem 0.45rem 0 0;
}
.an-result .an-cards {
  display: grid;
  gap: 2.8rem;
  margin: 2rem 0;
}
.an-result .an-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1.8rem;
  margin: 0;
  align-items: start;
}
.an-result .an-item .an-art svg, .an-result .an-item .an-art img {
  width: 100%;
  height: auto;
  display: block;
}
.an-result .an-item .an-art img {
  border-radius: 50%;
}
.an-result .an-item .an-art {
  transition: transform 0.6s;
}
.an-result .an-item:hover .an-art {
  transform: rotate(-4deg) scale(1.05);
}
.an-result .an-item h4 {
  font: 400 1.35rem "AN Title", "Cinzel", Georgia, serif;
  color: #7a261c;
  margin: 0;
}
.an-result .an-item .an-sub {
  font-style: italic;
  color: #8d6a28;
  margin: 0.2rem 0 0.7rem;
}
.an-result .an-item p {
  margin: 0 0 0.5rem;
}
.an-result .an-item b {
  font-variant: small-caps;
  letter-spacing: 0.04em;
  margin-right: 0.35rem;
}
@media (max-width: 760px) {
  .an-result .an-item {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .an-result .an-item .an-art {
    width: 150px;
    margin: auto;
  }
}
.an-result .an-plate {
  margin: 2rem 0;
  text-align: center;
}
.an-result .an-plate svg {
  width: 100%;
  height: auto;
  box-shadow: 0 10px 25px rgba(40, 20, 0, 0.35);
  border-radius: 14px;
}
.an-result .an-plate figcaption {
  font-style: italic;
  margin-top: 0.6rem;
}
.an-result .an-star {
  animation: an-twinkle 3.2s ease-in-out infinite alternate;
}
.an-result .an-star:nth-of-type(3n) {
  animation-delay: -1.1s;
}
.an-result .an-star:nth-of-type(4n) {
  animation-delay: -2.3s;
}
.an-result .an-wheel svg {
  display: block;
  width: 100%;
  max-width: 540px;
  height: auto;
  margin: 0 auto 1.5rem;
}
.an-result .an-table {
  overflow-x: auto;
  margin: 1rem 0 1.8rem;
}
.an-result table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.an-result th {
  font: 400 0.76rem "AN Title", "Cinzel", Georgia, serif;
  color: #7a261c;
  text-align: left;
  border-bottom: 2px solid #8d6a28;
}
.an-result th, .an-result td {
  padding: 0.6rem 0.55rem;
  vertical-align: top;
}
.an-result td {
  border-bottom: 1px solid rgba(141, 106, 40, 0.35);
}
.an-result .an-bars {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
.an-result .an-bars li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.an-result .an-bars span {
  width: 6rem;
}
.an-result .an-bars i {
  height: 0.5rem;
  width: calc(var(--v) * 7%);
  background: linear-gradient(90deg, #7a261c, #c9a24b);
  border-radius: 4px;
}

.an-reveal.is-wait {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s, transform 0.9s;
}
.an-reveal.is-wait.is-in {
  opacity: 1;
  transform: none;
}

@keyframes an-twinkle {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .an-result .an-star {
    animation: none;
  }
  .an-result .an-item .an-art {
    transition: none;
  }
}
