:root {
  --bg: #020303;
  --bg-2: #050b0d;
  --gold-1: #f7d67a;
  --gold-2: #d7a93a;
  --gold-3: #c89022;
  --gold-soft: rgba(247, 214, 122, 0.3);
  --line: rgba(216, 171, 63, 0.5);
  --text: #f7d67a;
}

* {
  box-sizing: border-box;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Gelasio', Georgia, serif;
  text-shadow: 0 0 0.35em rgba(247, 214, 122, 0.18);
}

body {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: radial-gradient(circle at 50% 40%, rgba(10, 17, 22, 0.8), rgba(2, 3, 3, 1) 55%);
  z-index: 0;
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: relative;
  width: 100%;
  padding: 18px 28px 18px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(216, 171, 63, 0.5);
}

.butterfly-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(247, 214, 122, 0.8));
}

.butterfly-image--large {
  width: min(36vw, 420px);
  height: min(36vw, 420px);
  max-width: 100%;
  transform: scale(1.18);
}

.brand-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px rgba(247, 214, 122, 0.8));
}

.ring-outer,
.ring-inner {
  fill: rgba(0, 0, 0, 0.05);
  stroke: var(--gold-1);
  stroke-width: 2;
}

.ring-outer {
  stroke-width: 2.2;
}

.ring-inner {
  stroke-width: 1.4;
  opacity: 0.9;
}

.butterfly,
.body {
  fill: none;
  stroke: var(--gold-1);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.butterfly {
  stroke-width: 2.3;
}

.body {
  stroke-width: 2.2;
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 8rem);
  padding: clamp(2rem, 4vw, 4rem) clamp(2.5rem, 4vw, 5rem) 4rem;
}

.headline-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}

h1 {
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 12rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: 500;
  color: var(--gold-1);
  background: linear-gradient(105deg, #c89022 0%, #d7a93a 35%, #bd861a 68%, #d7a93a 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 0.1em rgba(247, 214, 122, 0.58), 0 0 14px rgba(189, 134, 26, 0.58), 0 0 28px rgba(189, 134, 26, 0.32);
}

.crest-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.crest-image-wrap {
  width: min(36vw, 420px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: transparent;
}

.crest-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 12px rgba(247, 214, 122, 0.8));
}

.crest-ring-outer,
.crest-ring-inner {
  fill: rgba(0, 0, 0, 0.3);
  stroke: var(--gold-1);
  stroke-width: 4;
}

.crest-ring-outer {
  stroke-width: 5;
}

.crest-ring-inner {
  opacity: 0.8;
}

.crest-wing,
.crest-body {
  fill: none;
  stroke: var(--gold-1);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.crest-wing {
  stroke-width: 6;
}

.crest-body {
  stroke-width: 5;
}

@media (max-width: 900px) {
  body {
    overflow-y: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.5rem;
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  .headline-wrap {
    order: 2;
    min-height: unset;
  }

  .crest-wrap {
    order: 1;
    width: 100%;
  }

  .crest-image-wrap {
    width: min(60vw, 300px);
  }

  .topbar {
    padding-top: 16px;
    padding-bottom: 16px;
    align-items: flex-end;
  }
}

@media (max-width: 560px) {
  .topbar {
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
  }

  h1 {
    font-size: clamp(2.5rem, 16vw, 6rem);
    text-align: center;
  }

  .hero {
    padding-inline: 1.25rem;
  }
}
