/* justpegasus.de – Fantasy Tabletop Landing */

:root {
  --ink: #2a1810;
  --ink-soft: #4a3428;
  --parchment: #f3e6c8;
  --parchment-dark: #e8d4a8;
  --gold: #b8860b;
  --gold-light: #d4a843;
  --gold-glow: rgba(212, 168, 67, 0.35);
  --leather: #3d2517;
  --leather-deep: #1f1209;
  --moss: #4a6741;
  --moss-light: #6b8f62;
  --shadow: rgba(20, 10, 5, 0.45);
  --font-display: "Cinzel", "Palatino Linotype", "Book Antiqua", serif;
  --font-body: "Crimson Pro", "Palatino Linotype", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(212, 168, 67, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(74, 103, 65, 0.1) 0%, transparent 45%),
    linear-gradient(165deg, var(--leather-deep) 0%, #2d1a0f 40%, var(--leather) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

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

a {
  color: var(--gold);
  text-decoration-color: rgba(184, 134, 11, 0.5);
  text-underline-offset: 0.2em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--gold-light);
  text-decoration-color: var(--gold-light);
}

.page {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

/* Decorative dice */
.dice-float {
  position: fixed;
  color: var(--gold);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.dice-float--d20 {
  width: 72px;
  top: 12%;
  right: 8%;
  animation: float-d20 14s ease-in-out infinite;
}

.dice-float--d6 {
  width: 56px;
  bottom: 18%;
  left: 6%;
  animation: float-d6 11s ease-in-out infinite;
}

.dice-float--d20-b {
  width: 48px;
  bottom: 8%;
  right: 14%;
  animation: float-d20 17s ease-in-out infinite reverse;
  opacity: 0.12;
}

@keyframes float-d20 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(12deg); }
}

@keyframes float-d6 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-8deg); }
}

/* Parchment card */
.scroll {
  position: relative;
  background:
    linear-gradient(180deg, var(--parchment) 0%, var(--parchment-dark) 100%);
  border-radius: 4px;
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.25) inset,
    0 24px 48px var(--shadow),
    0 0 0 1px rgba(61, 37, 23, 0.2);
}

.scroll::before,
.scroll::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.45;
}

.scroll::before { top: 1.25rem; }
.scroll::after { bottom: 1.25rem; }

.rune-border {
  position: absolute;
  inset: 0.75rem;
  border: 1px solid rgba(184, 134, 11, 0.25);
  border-radius: 2px;
  pointer-events: none;
}

.rune-border::before {
  content: "ᚠ ᚢ ᚦ ᚨ ᚱ ᚲ";
  position: absolute;
  top: -0.6rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 1rem;
  background: var(--parchment);
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  opacity: 0.7;
  white-space: nowrap;
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero__emblem {
  width: 88px;
  height: auto;
  margin: 0 auto 1.25rem;
  color: var(--gold);
  filter: drop-shadow(0 4px 12px var(--gold-glow));
}

.hero__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leather-deep);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.hero__subtitle {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.12em;
  color: var(--moss);
}

.hero__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto;
  max-width: 280px;
  color: var(--gold);
  opacity: 0.6;
}

.hero__divider::before,
.hero__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero__divider-icon {
  width: 20px;
  height: 20px;
}

/* Sections */
.section {
  margin-top: 2rem;
}

.section__heading {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.section p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.section p:last-child {
  margin-bottom: 0;
}

/* Character sheet style stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.25rem;
  background: rgba(61, 37, 23, 0.06);
  border: 1px solid rgba(184, 134, 11, 0.2);
  border-radius: 4px;
}

.stat {
  text-align: center;
}

.stat__label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--leather-deep);
}

/* Links / quests */
.quests {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.quests li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.75rem;
  border-bottom: 1px dashed rgba(61, 37, 23, 0.15);
}

.quests li:last-child {
  border-bottom: none;
}

.quests li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0.7rem;
  font-size: 0.55rem;
  color: var(--gold);
}

.quests a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.quests__soon {
  color: var(--ink-soft);
  font-style: italic;
}

/* Footer */
.footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(74, 52, 40, 0.65);
  border-top: 1px solid rgba(184, 134, 11, 0.2);
}

.footer__roll {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 600px) {
  .page {
    padding-top: 1.5rem;
  }

  .scroll {
    padding: 1.75rem 1.25rem;
  }

  .dice-float {
    opacity: 0.1;
  }

  .dice-float--d20 {
    width: 48px;
    right: 4%;
  }

  .dice-float--d6 {
    width: 40px;
    left: 3%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .dice-float {
    animation: none;
  }
}

/* Unterseiten */
.page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.page-header__eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-header__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--leather-deep);
}

.page-content {
  color: var(--ink-soft);
}

.page-content h2,
.page-content h3 {
  font-family: var(--font-display);
  color: var(--leather-deep);
  margin: 1.75rem 0 0.75rem;
}

.page-content p {
  margin: 0 0 1rem;
}

.page-content ul,
.page-content ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.page-content--campaign {
  border-left: 3px solid var(--gold);
  padding-left: 1.25rem;
}

.page-content--character {
  background: rgba(61, 37, 23, 0.04);
  padding: 1.25rem;
  border-radius: 4px;
}
