:root {
  --ink: #1f2a27;
  --ink-soft: #52615b;
  --paper: #f4efe2;
  --paper-deep: #e8dfcc;
  --jade: #8fb4a7;
  --jade-deep: #486d64;
  --gold: #c7a35b;
  --gold-deep: #8d6c2f;
  --moon: #dbe5e8;
  --white: #fffaf0;
  --line: rgba(31, 42, 39, 0.16);
  --shadow: 0 28px 80px rgba(52, 61, 54, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 4%, rgba(199, 163, 91, 0.34), transparent 34rem),
    radial-gradient(circle at 8% 76%, rgba(143, 180, 167, 0.34), transparent 28rem),
    linear-gradient(135deg, #f8f3e7 0%, #eef1e9 46%, #f4efe2 100%);
  font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 42, 39, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 42, 39, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.48), transparent 70%);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
a.button {
  font: inherit;
}

.site-header {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.72);
  backdrop-filter: blur(18px);
  position: relative;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--gold-deep);
  background: var(--white);
  border: 1px solid rgba(141, 108, 47, 0.28);
}

.nav-links {
  display: flex;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 56px auto 80px;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 42px;
  align-items: center;
  position: relative;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.72;
  animation: floatOrb 9s ease-in-out infinite alternate;
}

.hero-orb-one {
  width: 310px;
  height: 310px;
  right: 18%;
  top: -18px;
  background: radial-gradient(circle, rgba(199, 163, 91, 0.36), rgba(199, 163, 91, 0));
}

.hero-orb-two {
  width: 260px;
  height: 260px;
  left: -60px;
  bottom: 80px;
  background: radial-gradient(circle, rgba(143, 180, 167, 0.36), rgba(143, 180, 167, 0));
  animation-delay: -3s;
}

.hero-copy,
.hero-panel,
.quiz-card,
.result-copy,
.result-image,
.article-body,
.section-heading,
.archetype-card,
.article-card {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-deep);
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 12px;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 0.96;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(56px, 9vw, 112px);
  letter-spacing: -0.075em;
}

.hero-lede {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.56;
}

.hero-actions,
.quiz-controls,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  border: 0;
  border-radius: 999px;
  min-height: 50px;
  padding: 15px 22px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, #1f2a27, #486d64);
  box-shadow: 0 16px 38px rgba(31, 42, 39, 0.25);
}

.button.ghost {
  color: var(--ink);
  background: rgba(255, 250, 240, 0.74);
  border: 1px solid var(--line);
}

.disclaimer {
  color: var(--ink-soft);
  font-size: 13px;
}

.hero-panel {
  padding: 34px;
  border: 1px solid rgba(31, 42, 39, 0.14);
  border-radius: 34px;
  background: rgba(255, 250, 240, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.hero-panel .seal {
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  margin-bottom: 24px;
  border-radius: 50%;
  color: var(--gold-deep);
  border: 1px solid rgba(141, 108, 47, 0.28);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  background: linear-gradient(135deg, #fffaf0, #e9dec2);
}

.hero-panel p {
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.7;
}

.section,
.page-main,
.quiz-main,
.article-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 88px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading.wide {
  max-width: 920px;
  margin-top: 68px;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  letter-spacing: -0.045em;
}

.section-heading p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.65;
}

.mini-grid,
.archetype-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.mini-card,
.archetype-card,
.article-card {
  overflow: hidden;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.68);
  box-shadow: 0 18px 50px rgba(52, 61, 54, 0.1);
  text-decoration: none;
}

.mini-card img,
.archetype-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.mini-card div,
.archetype-card div,
.article-card {
  padding: 18px;
}

.mini-card p,
.archetype-card p {
  margin: 0;
  color: var(--gold-deep);
  font-size: 13px;
}

.mini-card h3,
.archetype-card h2,
.archetype-card h3,
.article-card h2 {
  margin: 8px 0;
}

.mini-card span,
.archetype-card span,
.article-card p {
  color: var(--ink-soft);
  line-height: 1.55;
}

.quiz-shell {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 36px;
  align-items: start;
  margin-top: 70px;
}

.quiz-intro h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 82px);
  letter-spacing: -0.055em;
}

.quiz-intro p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.65;
}

.quiz-card {
  padding: 30px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.76);
  box-shadow: var(--shadow);
}

.progress-top {
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 13px;
}

.progress-bar {
  height: 9px;
  margin: 14px 0 28px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(31, 42, 39, 0.1);
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--jade-deep));
}

.quiz-card h2 {
  margin: 0 0 22px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.option-list {
  display: grid;
  gap: 12px;
}

.option-button {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 16px;
  text-align: left;
  border: 1px solid rgba(31, 42, 39, 0.14);
  border-radius: 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

.option-button strong {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--gold-deep);
  background: var(--white);
}

.option-button.selected {
  border-color: rgba(72, 109, 100, 0.58);
  background: rgba(143, 180, 167, 0.2);
}

.quiz-controls {
  justify-content: space-between;
  margin-top: 24px;
}

.shake {
  animation: shake 280ms ease;
}

.result-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 70px auto 28px;
  display: grid;
  grid-template-columns: 0.88fr 0.8fr;
  gap: 34px;
  align-items: center;
}

.result-copy {
  padding: 34px;
  border-radius: 34px;
  background: rgba(255, 250, 240, 0.68);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.result-copy h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 86px);
  letter-spacing: -0.055em;
}

.result-copy h2 {
  margin: 12px 0;
  color: var(--jade-deep);
  font-size: clamp(26px, 3vw, 36px);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.tag-row span {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
}

.rarity,
.action-note {
  color: var(--ink-soft);
}

.result-image {
  overflow: hidden;
  border-radius: 38px;
  box-shadow: var(--shadow);
}

.result-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.result-actions {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 34px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.62);
}

.report-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 88px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.report-section,
.article-body {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.7);
}

.report-section p:not(.eyebrow),
.article-body p {
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.76;
}

.article-main {
  margin-top: 68px;
}

.article-body {
  max-width: 820px;
  margin: 0 auto;
}

.article-body h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 6vw, 74px);
  letter-spacing: -0.05em;
}

.article-description {
  font-size: 21px;
}

.article-card {
  min-height: 250px;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 28px;
}

.footer-cta {
  padding: clamp(30px, 6vw, 66px);
  border-radius: 38px;
  color: var(--white);
  background:
    radial-gradient(circle at 88% 12%, rgba(199, 163, 91, 0.45), transparent 24rem),
    linear-gradient(135deg, #1f2a27, #405d55);
}

.footer-cta h2 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(38px, 6vw, 78px);
  letter-spacing: -0.055em;
}

.footer-cta p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 250, 240, 0.78);
  font-size: 20px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding: 22px 4px;
  color: var(--ink-soft);
  font-size: 14px;
}

.reveal {
  animation: reveal 800ms cubic-bezier(.2, .8, .2, 1) both;
}

.delay-1 {
  animation-delay: 140ms;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatOrb {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(18px, -20px, 0) scale(1.06);
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(-8px);
  }
  60% {
    transform: translateX(8px);
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    border-radius: 26px;
    flex-direction: column;
  }

  .hero,
  .quiz-shell,
  .result-hero {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .mini-grid,
  .archetype-grid,
  .article-grid,
  .report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: 58px;
  }

  .hero-panel,
  .quiz-card,
  .result-copy,
  .report-section,
  .article-body {
    padding: 22px;
  }

  .mini-grid,
  .archetype-grid,
  .article-grid,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .result-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
    text-align: center;
  }
}
